package xyz.lwm.lazycat.netpipe.domain.enums;

/**
 * 令牌类型
 *
 * @author lwm
 */
public enum TokenType {

    DEFAULT, WECHAT, ALIPAY;

    public static TokenType getByType(String type) {
        for (TokenType tokenType : TokenType.values()) {
            if (tokenType.name().equalsIgnoreCase(type)) {
                return tokenType;
            }
        }
        return DEFAULT;
    }

}
